 <!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>
        <?php if ($title) {
            echo $title.'-'.C('stie_name');
        }else{
            echo C('stie_name');
        } ?>
    </title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />

    <link rel="stylesheet" href="__PUBLIC__/css/font_aw93q7mhbm7k3xr.css">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/css/global.css">
    <script src="__PUBLIC__/layui/layui.js"></script>
</head>
<body>
<div class="header">
    <div class="main"><a class="logo" href="/" title="问答社区">问答社区</a>
        <div class="nav">
            <a href="/"><i class="iconfont icon-wenda"></i>讨论 </a>
            <a href="javascript:;"><i class="iconfont icon-iconmingxinganli" style="top: 2px;"></i>待开发</a>
            <a href="javascript:;"> <i class="iconfont icon-ui"></i>待开发</a></div>
        <?php if(isset($_SESSION['id'])){ ?>
                    <div class="nav-user">
                        <a class="avatar" href="{:U('home/users/index')}">
                            <img src="__ROOT__<?php echo $_SESSION['face'] ?>">
                            <cite>
                                <?php echo $_SESSION['nickname'] ?>
                            </cite>
                        </a>
                        <div class="nav">
                            <a href="{:U('home/set/index')}">
                                <i class="iconfont icon-shezhi">
                                </i>
                                设置
                            </a>
                            <a href="{:U('home/login/loginout')}">
                                <i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;">
                                </i>
                                退了
                            </a>
                        </div>
                    </div>
                <?php }else{ ?>

                    <div class="nav-user">
                        <a class="unlogin" href="{:U('home/login/index')}">
                            <i class="iconfont icon-touxiang">
                            </i>
                        </a>
                        <span>
                            <a href="{:U('home/login/index')}">
                                登入
                            </a>
                            <a href="{:U('home/reg/index')}">
                                注册
                            </a>
                        </span>
                        <p class="out-login">
                            <a href="{:U('home/login/qqlogin')}" class="iconfont icon-qq" title="QQ登入">
                            </a>
                        </p>
                    </div>

                <?php } ?>

            </div>
        </div>
 {__CONTENT__}
<div class="footer">
    <p><a href="javascript:;">问答社区</a> 2017 © <a href="javascript:;">9wi.net</a></p>
    <p><a href="http://www.miitbeian.gov.cn/" rel="nofollow" target="_blank">浙ICP备17001631号-3</a></p>

</div>
</body>
</html>